<template>
  <view class="box-loading">
    <view class="loading10"></view>
  </view>
</template>

<script></script>

<style lang="scss" scoped>
.box-loading {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 20px;
  background: #fff;
  border-radius: 10rpx;
  box-shadow: 0px 0px 30rpx 1rpx #8486f8 inset;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 999 !important;
  .loading10 {
    position: relative;
    width: 50px;
    perspective: 200px;
    z-index: 999;
    background: #fff;
  }

  .loading10:before,
  .loading10:after {
    position: absolute;
    width: 20px;
    height: 20px;
    content: "";
    animation: jumping 0.5s infinite alternate;
    background: rgba(0, 0, 0, 0);
    // background: #FFF;
  }

  .loading10:before {
    left: 0;
    top: -30upx;
  }

  .loading10:after {
    right: 0;
    top: -30upx;
    animation-delay: 0.15s;
  }

  @keyframes jumping {
    0% {
      transform: scale(1) translateY(0px) rotateX(0deg);
      box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    100% {
      transform: scale(1.2) translateY(-25px) rotateX(45deg);
      background: #8486f8;
      box-shadow: 0 25px 40px #8486f8;
    }
  }
}
</style>
